package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.DesignatedCall;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.DesignatedListPresenterDTO;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.DesignatedRideQueryWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.OrderManageQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@DS(Const.PRIMARY_DS)
public interface DesignatedCallMapper extends BaseMapper<DesignatedCall> {
    IPage<DesignatedListPresenterDTO> getDesignatedPage(Page<Object> page, @Param("wrapper") DesignatedRideQueryWrapper wrapper);

    //不分页，查询代驾
    List<DesignatedListPresenterDTO> getDesignatedList(@Param("wrapper") OrderManageQueryDto wrapper);
}
